<template>
  <div>
       <div
      class="missionList"
      v-for="item in missions"
      :key="item.index"
      @click="openEdit(item)"
    >
      <div class="missionInfo">
        <div class="missionTime">2024-03-26</div>
        <div class="missionUser">xxx研究所</div>
      </div>
      <!-- 施肥 -->
      <div class="farmsStock" v-if="item.code === 'NS_SF'">
        <div class="farmsStockIcon">
          <img src="../../../assets/img/huafeiicon.png" alt="" />
        </div>
        <div class="farmsStockName">{{ item.agriculturalType }}</div>
        <div class="farmsStockNum">{{ item.fertilizerQuantity }}公斤</div>
      </div>
      <div class="seed" v-if="item.code === 'NS_BZ'">
        品种：{{item.seedType}} {{item.seedInfo}}
        <div class="seedNum">{{item.seedNum}}</div>
        <div class="seedSpacing" v-if="item.seedSpacing !== null">{{item.seedSpacing}}cm</div>
      </div>
      <div
        class="missionImg"
        v-for="(pic, index) in item.picture"
        :key="index"
        @click="pictureBig(pic)"
      >
        <img :src="pic" alt="" />
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'SevencolorUserReportComponents',

  data () {
    return {

    }
  },

  mounted () {

  },

  methods: {

  }
}
</script>
<style lang="scss" scoped>
// 样式复用
.missionList {
  width: 54.1667vw;
  // height: 16.6667vw * 0.834;
  background: #edf1f4;
  border-radius: 12px 12px 12px 12px;
  padding: 1.0417vw * 0.834 1.0417vw;
  margin-bottom: 1.5vw;
}
.missionInfo {
  display: flex;
  .missionTime {
    width: 8.3333vw;
    height: 1.5625vw * 0.834;
    background: #19b560;
    border-radius: 8px 8px 8px 8px;
    margin-right: 20px;
    text-align: center;
    line-height: 1.5625vw * 0.834;
    font-weight: 500;
    font-size: 1.0417vw;
    color: #fff;
  }
  .missionInfoType {
    // width: 8.1667vw;
    padding: 0 1vw;
    height: 1.5625vw * 0.834;
    background: #19b560;
    border-radius: 8px 8px 8px 8px;
    margin-right: 20px;
    line-height: 1.5625vw * 0.834;
    text-align: center;
    font-weight: 500;
    font-size: 1.0417vw;
    color: #fff;
  }
  .missionUser {
    width: 10.1667vw;
    height: 1.5625vw * 0.834;
    line-height: 1.5625vw * 0.834;
    font-weight: 500;
    font-size: 1.0417vw;
  }
}
.missionRemark {
  font-weight: 400;
  font-size: 1.0417vw;
  color: #666666;
  margin: 1.0417vw * 0.834 0 0.5208vw * 0.834;
}
.farmsStock {
  width: 18.75vw;
  height: 3.2813vw * 0.834;
  background: #e4e7e9;
  border-radius: 12px 12px 12px 12px;
  display: flex;
  line-height: 3.2813vw * 0.834;
  font-size: 0.9375vw;
  .farmsStockIcon {
    width: 1.6667vw;
    height: 1.6667vw;
    margin: auto 1.0417vw;
  }
  .farmsStockName {
    margin: 0 1.5625vw 0 0;
    color: #647f93;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
  }
  .farmsStockNum {
    color: #647f93;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
  }
}
</style>
